import request from '@/utils/request'

// 获取所有
export function getList(data) {
  return request({
    url: '/information/list',
    method: 'get',
    params:data
  })
}

// 获取新增
export function getAdd(data) {
    return request({
      url: '/information',
      method: 'post',
      data
    })
  }

// 修改
export function getUpdate(data) {
    return request({
      url: '/information',
      method: 'put',
      data
    })
  }
// 详情
export function getDsc(id) {
  return request({
      url: `/information/${id}`,
      method: 'get',
  })
}
  // 删除
export function getDet(id) {
    return request({
        url: `/information/del/${id}`,
        method: 'delete',
    })
}

// 获取所有
export function getclassifyList(data) {
    return request({
      url: '/information/classify/list',
      method: 'get',
      params:data
    })
  }
  
  // 获取新增
  export function getclassifyAdd(data) {
      return request({
        url: '/information/classify',
        method: 'post',
        data
      })
    }
  
  // 修改
  export function getclassifyUpdate(data) {
      return request({
        url: '/information/classify',
        method: 'put',
        data
      })
    }
  
    // 删除
  export function getclassifyDet(id) {
      return request({
          url: `/information/classify/del/${id}` ,
          method: 'delete',
      })
  }
// 详情
export function getclassifyDsc(id) {
  return request({
      url: `/information/classify/${id}`,
      method: 'get',
  })
}